﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using Maticsoft.Common;
using System.Text;

namespace Lawyer.Web.Admin
{
    public partial class admin_fileshow : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    string FileID = strid;
                    ShowInfo(FileID);
                }
            }
        }
        private void ShowInfo(string FileID)
        {
            Lawyer.BLL.FileInfo bll = new Lawyer.BLL.FileInfo();
            Lawyer.Model.FileInfo model = bll.GetModel(FileID);
            this.txtFileName.Text = model.FileName;
            this.txtFileNote.Text = model.FileNote;
            this.txtCreateBy.Text = model.CreatedBy;
            this.txtCreateTime.Text = model.CreatedDate.ToShortDateString();
            if (model.ArchiveID == null)
            {
                this.txtArchive.Text = "No Archive related.";
            }
            else
            {
                this.txtArchive.Text = model.ArchiveID;
            }
        }
    }
}
